package com.alibaba.sdk.util;

import org.springframework.util.DigestUtils;

/**
 * 加密工具类
 *
 * @ writer Shawn(Shawn_0217@163.com)
 * @ date & time 2021/4/26 22:59
 * @ company alibaba
 */
public class EncryptUtil {

    /**
     * 获取加密密码
     *
     * @param password
     * @return
     */
    public static String getEncryptPassword(String password) {
        return DigestUtils.md5DigestAsHex(password.getBytes());
    }
}
